package com.example.demo.dynamicproxy;

/**
 * @ClassName ProxyTest
 * @Description TODO
 * @Author hly
 * @Date 2018\11\26 0026 13:32
 */
public class ProxyTest {

    public static void main(String[] args) {
        LiuDeHuaProxy proxy = new LiuDeHuaProxy();
        //获得代理对象
        Person p = proxy.getProxy();

        //调用代理对象的sing方法
        String retValue = p.sing("冰雨");
        System.out.println(retValue);

        String value = p.dance("江南style");
        System.out.println(value);


    }
}
